namespace utils {

	export function clazzSuffixed(clazz: any, suffix: string): any {
		return clazzNamed(nameOfClazz(clazz) + suffix);
	}

	export function nameOfClazz(clazz: any): string {
		return egret.getQualifiedClassName(clazz);
	}

	export function clazzNamed(name: string): any {
		return egret.getDefinitionByName(name);
	}

	export function setOwnValue(obj: Object, name: string, value: any): void {
		if (!!obj && Reflect.ownKeys(obj).contains(name)) obj[name] = value;
	}


}